home *** CD-ROM | disk | FTP | other *** search
- // Copyright (C) 1997-2002 Alias|Wavefront,
- // a division of Silicon Graphics Limited.
- //
- // The information in this file is provided for the exclusive use of the
- // licensees of Alias|Wavefront. Such users have the right to use, modify,
- // and incorporate this code into other products for purposes authorized
- // by the Alias|Wavefront license agreement, without fee.
- //
- // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
- // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
- // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
- // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
- // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
- // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- // PERFORMANCE OF THIS SOFTWARE.
- //
- global proc shelf_Common ()
- {
-
- if ( `about -evalVersion` ) {
- shelfButton
- -label "Tutorials"
- -command ("showHelp -absolute \"" + "file://" + getenv("MAYA_LOCATION") + "/docs/en_US/html/Welcome.html\"")
- -image1 "welcomePLELink.xpm"
- welcomeButton;
- }
-
- if (`isTrue "NurbsUIExists"`) {
- shelfButton
- -label "CV Curve Tool"
- -command "CVCurveTool"
- -image1 "curveCV.xpm"
- -doubleClickCommand "CVCurveToolOptions"
- ;
-
- shelfButton
- -label "EP Curve Tool"
- -command "EPCurveTool"
- -image1 "curveEP.xpm"
- -doubleClickCommand "EPCurveToolOptions"
- ;
-
- shelfButton
- -label "Extrude"
- -image1 "extrude.xpm"
- -style "iconOnly"
- -command "Extrude"
- ;
-
- shelfButton
- -label "Revolve"
- -image1 "revolve.xpm"
- -style "iconOnly"
- -command "Revolve"
- ;
-
- shelfButton
- -label "Loft"
- -image1 "skin.xpm"
- -style "iconOnly"
- -command "Loft"
- ;
-
- if( `isTrue "SurfaceUIExists"` ) {
- shelfButton
- -label "Stitch Tool"
- -command "StitchEdgesTool"
- -image1 "stitchSrf.xpm"
- -doubleClickCommand "StitchEdgesToolOptions"
- ;
-
- shelfButton
- -label "Sphere"
- -command "CreateNURBSSphere"
- -image1 "sphere.xpm"
- ;
-
- shelfButton
- -label "Cone"
- -command "CreateNURBSCone"
- -image1 "cone.xpm"
- ;
- }
- }
-
- if (`isTrue "PolygonsExists"`) {
- shelfButton
- -label "Poly Cube"
- -command "CreatePolygonCube"
- -image1 "polyCube.xpm"
- ;
-
- shelfButton
- -label "Poly Cylinder"
- -command "CreatePolygonCylinder"
- -image1 "polyCylinder.xpm"
- ;
- }
-
- if (`isTrue "KinematicsExists"`) {
- if (`jointCtx -exists jointContext`) {
- shelfButton
- -label "IK Joint Tool"
- -command "JointTool"
- -image1 "kinJoint.xpm"
- -doubleClickCommand "JointToolOptions"
- ;
- }
-
- if (`ikHandleCtx -exists ikHandleContext`) {
- shelfButton
- -label "IK Handle"
- -command "IKHandleTool"
- -image1 "kinHandle.xpm"
- -doubleClickCommand "IKHandleToolOptions"
- ;
- }
- }
-
- if (`isTrue "RenderingExists"`) {
- shelfButton
- -label "SpotLight"
- -command "CreateSpotLight"
- -image1 "spotlight.xpm"
- ;
-
- shelfButton
- -label "Camera"
- -command "CreateCameraOnly"
- -image1 "view.xpm"
- ;
- }
-
- if (`isTrue "DynamicsExists"`) {
- if (`contextInfo -exists dynParticleContext`) {
- shelfButton
- -label "Particle Tool"
- -command "ParticleTool"
- -image1 "particle.xpm"
- -doubleClickCommand "ParticleToolOptions"
- ;
- }
- }
- }
-